﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Mecanica.Dominio;
using System.Xml;

namespace MecanicaWPF.Cadastros
{
    /// <summary>
    /// Interaction logic for CadastroVeiculo.xaml
    /// </summary>
    public partial class CadastroVeiculo : Window
    {
        public CadastroVeiculo()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            Mecanica.Dominio.Entidades.NFE.NotaFiscalEletronica nfe = new Mecanica.Dominio.Entidades.NFE.NotaFiscalEletronica();
            //nfe.infNFe = new NFE.TNFeInfNFe();
            //nfe.infNFe.versao = "2.0";
            //nfe.infNFe.Id = "358938490";

            //XmlTextWriter textWriter = new XmlTextWriter("po.xml", null);
            //textWriter.Formatting = Formatting.Indented;
            //XmlQualifiedName qname = new XmlQualifiedName("PurchaseOrder", "http://tempuri.org");
            //XmlSampleGenerator generator = new XmlSampleGenerator("po.xsd", qname);
            //genr.WriteXml(textWriter);

        }
    }
}
